import { defineStore } from "pinia";
import { Names } from "../../store-namespace";
import { _get, _post, _put, _delete, http } from "@/utils/axios";
import { BusinessLedger } from "@/api/backend/index";

export const useLedger = defineStore(Names.ledger, {
  state: () => {
    return {
      single: {
        id: 0,
        orderNumber: "",
        fileName: "",
        isNecessary: "",
      },
    };
  },
  getters: {},
  actions: {
    //获取部门下拉框列表信息
    // getDept() {
    //   return new Promise((resolve, reject) => {
    //     _get(sysMDept + "/treeselect", {}, "json", "")
    //       .then((res) => {
    //         console.log(res);
    //         resolve(res);
    //       })
    //       .catch((err) => {
    //         console.log(err);
    //         reject(err);
    //       });
    //   });
    // },
  },
});
